package com.hiwhitley.himei.network.service;

import com.hiwhitley.himei.entity.Game;
import com.hiwhitley.himei.entity.GameList;

import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by hiwhitley on 2016/10/6.
 */

public interface GameService {
    @Headers("Cache-Control: public, max-age=86400")
    @GET("api/v2/recommends")
    Observable<GameList> getRecommendGames(@Query("offset") Integer paramInteger1, @Query("limit") Integer paramInteger2);

    @Headers("Cache-Control: public, max-age=86400")
    @GET("api/v2/games/{id}")
    Observable<Game> getGameDetail(@Path("id") int paramInt);
}
